package com.example.wan1.model;

import android.os.Parcel;
import android.os.Parcelable;

/***
 * 创建时间：2020/7/31 18:29
 * 创建人：10850
 * 功能描述：
 */
public class TodoBean implements Parcelable {

    /**
     * completeDate : null
     * completeDateStr :
     * content : 学习webview
     * date : 1594310400000
     * dateStr : 2020-07-10
     * id : 23709
     * priority : 1
     * status : 0
     * title : 学习计划
     * type : 0
     * userId : 849
     */
    private Object completeDate;
    private String completeDateStr;
    private String content;
    private long date;
    private String dateStr;
    private int id;
    private int priority;
    private int status;
    private String title;
    private int type;
    private int userId;

    protected TodoBean(Parcel in) {
        completeDateStr = in.readString();
        content = in.readString();
        date = in.readLong();
        dateStr = in.readString();
        id = in.readInt();
        priority = in.readInt();
        status = in.readInt();
        title = in.readString();
        type = in.readInt();
        userId = in.readInt();
    }

    public static final Creator<TodoBean> CREATOR = new Creator<TodoBean>() {
        @Override
        public TodoBean createFromParcel(Parcel in) {
            return new TodoBean(in);
        }

        @Override
        public TodoBean[] newArray(int size) {
            return new TodoBean[size];
        }
    };

    public Object getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Object completeDate) {
        this.completeDate = completeDate;
    }

    public String getCompleteDateStr() {
        return completeDateStr;
    }

    public void setCompleteDateStr(String completeDateStr) {
        this.completeDateStr = completeDateStr;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public String getDateStr() {
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(completeDateStr);
        dest.writeString(content);
        dest.writeLong(date);
        dest.writeString(dateStr);
        dest.writeInt(id);
        dest.writeInt(priority);
        dest.writeInt(status);
        dest.writeString(title);
        dest.writeInt(type);
        dest.writeInt(userId);
    }
}
